//
//  RegistViewController.h
//  Growth
//
//  Created by MEET on 12-1-4.
//  Copyright 2012 MEETStudio. All rights reserved.
//
/*
 系统注册
 */

#import <UIKit/UIKit.h>
#import "PushRightViewController.h"

#import "WebRequest.h"
#import "WebConnetionArray.h"
#import "WebConnection.h"
#import "SDImageView+SDWebCache.h"
#import "Photo.h"
#import "CJSONScanner.h"
#import "CJSONDeserializer.h"
#import "CJSONSerializer.h"

#import "ContentUnitViewController.h"

#import "ASIHTTPConnection.h"

@interface RegistViewController : ContentUnitViewController<UITextFieldDelegate,ASIHTTPConnectionDelegate> {
	UITextField *nickNametextField;
	UITextField *emailtextField;
	UITextField *keytextField;
    
    bool _isNickNameCorrect;
    bool _isEmailCorrect;
    bool _isPasswordCorrect;
    bool _isPostRegist;
    
}

@property (nonatomic, retain) IBOutlet UITextField *nickNametextField;
@property(nonatomic,retain)IBOutlet UITextField *emailtextField;
@property(nonatomic,retain)IBOutlet UITextField *keytextField;

-(IBAction)registerAction:(id)sender;

-(IBAction)backgroundTap:(id)sender;

-(void)verifyNickName:(NSString *)nickName;
-(void)verifyEmail:(NSString *)email;

-(void)registerSuccess;


@end
